package org.cllib.data;

public class Line {
	public int x1 ,y1 , x2 , y2;

	public Line(Point p1, Point p2) {
		this(p1.x, p1.y, p2.x, p2.y);
	}

	public Line(int x1, int y1, int x2, int y2) {
		super();
		this.x1 = x1;
		this.y1 = y1;
		this.x2 = x2;
		this.y2 = y2;
	}
	
	public Line(Line line){
		this(line.x1 , line.y1, line.x2 , line.y2);
	}
	
	public String toString(){
		return "line[" + x1 + " , " + y1 + "] [" + x2 + " , " + y2 + "]";
	}
	
}
